|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.byteman.contrib.dtest.InstrumentedInstance
public class InstrumentedInstance
InstrumentedInstance instances serve two purposes: Internally to the framework they provide storage of traced method invocation information received from the remote execution via BytemanTestHelper->InstrumentedClass->this. To the framework user, they provide utility methods for verifying expectations relating to that remote execution e.g. the number of method calls made.
Method Summary | |
---|---|
void |
assertMethodCallCount(java.lang.String message,
java.lang.String methodName,
CallCount callCount)
Checks that the number of known invocations of the given method falls within the specified range. |
int |
getInvocationCount(java.lang.String methodName)
Returns the number of known invocations of the given method upon the object instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getInvocationCount(java.lang.String methodName)
methodName
- the method name to look for.
public void assertMethodCallCount(java.lang.String message, java.lang.String methodName, CallCount callCount)
message
- the message to print in case of assertion failure.methodName
- the method name to look for.callCount
- the expected range for the invocation count.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |